<?php
require_once $_SERVER['DOCUMENT_ROOT'] . "/public/FriendLink.php";
//$copyright = $cms->copyright();
$link = new FriendLink();
$links = $link->loadAllData();
?>
<div style="background:#e4e4e4; margin-top:5px;overflow: hidden; ">
    <div class="full">
        <ul>
            <li>
                <a href="https://wpa.qq.com/msgrd?v=3&amp;uin=<?php echo $head["qq"] ?>&amp;site=qq&amp;menu=yes">
                    <span class="span1"></span>
                    <label>在线QQ</label></a>
            </li>
            <li>
                <a href="javascript:void(0)">
                    <span class="span2"></span>
                    <label><?php echo $head["tel"] ?></label></a>
            </li>
            <li>
                <a href="javascript:void(0)">
                    <span class="span3"></span>
                    <label class="lbl_img">
                        <img src="/<?php echo $basepath . "/" . $head["webchat"] ?>" height="256"></label>
                </a>
            </li>
            <li>
                <a href="javascript:void(0)" class="gotop" onclick="$('html,body').stop().animate({scrollTop:0},800)">
                    <span class="span4"></span>
                </a>
            </li>
        </ul>
    </div>
    <div class="container">
        <div class="foot_nav clf">
            <div class="ft_dl_div">
                <?php
                foreach ($nav_menu as $val) {
                    ?>
                    <dl class="ft_dl">
                        <dt>
                            <a href='<?php
                            $temp_name = $cms->menuUrlParse($val["menuUrl"]);
                            echo "/" . $basepath . "/" . ($cms->is_html ? "html/$temp_name/$temp_name" . $val["idMenuinfo"] . ".html" : $val["menuUrl"] . "?type=" . $val["menuType"] . "&id=" . $val["idMenuinfo"]) ?>'
                               title="<?php echo $val["menuName"] ?>"><?php echo $val["menuName"] ?></a></dt>
                        <?php if (isset($val["children"])) {
                            foreach ($val["children"] as $val2) {
                                ?>
                                <dd>
                                    <a href='<?php
                                    $temp_name = $cms->menuUrlParse($val2["menuUrl"]);
                                    echo "/" . $basepath . "/" . ($cms->is_html ? "html/$temp_name/$temp_name" . $val2["idMenuinfo"] . ".html" : $val2["menuUrl"] . "?id=" . $val2["idMenuinfo"] . "&pid=" . $val["idMenuinfo"]) ?>'
                                       title="<?php echo $val2["menuName"] ?>"><?php echo $val2["menuName"] ?></a>
                                </dd>
                                <?php
                            }
                        } else { ?>
                            <dd>
                                <a href='<?php
                                $temp_name = $cms->menuUrlParse($val["menuUrl"]);
                                echo "/" . $basepath . "/" . ($cms->is_html ? "html/$temp_name/$temp_name" . $val["idMmenuinfo"] . ".html" : $val["menuUrl"] . "?type=" . $val["menuType"] . "&id=" . $val["idMenuinfo"]) ?>'
                                   title="<?php echo $val["menuName"] ?>"><?php echo $val["menuName"] ?></a></dd>
                        <?php } ?>

                    </dl>
                <?php } ?>

            </div>
            <div class="ft1 fl">
                <h5>官方微信</h5>
                <div class="fl ft1_fl"><img src="/<?php echo $basepath . "/" . $head["webchat"] ?>" width="94"
                                            height="94" alt=""/></div>
                <div class="cl"></div>
            </div>
        </div>
        <div class="footer">
            <dl class="clf">
                <dt>友情链接：</dt>

                <?php
                foreach ($links as $val) {
                    echo "<dd style='margin-left: 5px;' title='" . $val["linkName"] . "'><a href='" . $val["linkUrl"] . "' target='_blank' >" . $val["linkName"] . "</a></dd>";
                }
                ?>


            </dl>
            <p><span class="ft_span">地址：<?php echo $head["address"] ?> &nbsp;</span><span class="ft_span"> E-mail：<a
                            href="/cdn-cgi/l/email-protection" class="__cf_email__"
                            data-cfemail="83e2e7eeeaedc3e2e7eeeaedade0ecee"><?php echo $head["email"] ?></a> &nbsp; </span><span
                        class="ft_span">电话：<?php echo $head["tel"] ?> &nbsp; </span><span
                        class="ft_span">传真：<?php echo $head["fax"] ?></span></p>
            <p><span class="ft_span"><?php echo $head["copyright"] ?>  &nbsp;</span>
                &nbsp;</p>
        </div>
    </div>
</div>

<script type="text/javascript" src="/<?php echo $basepath ?>/assert/js/slider.js"></script>
<script type="text/javascript" src="/<?php echo $basepath ?>/assert/js/wow.js"></script>
<script type="text/javascript" src="/<?php echo $basepath ?>/assert/js/main.js"></script>

</body>
</html>